projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b58c377
)
* net/tramp.el (tramp-local-host-p): Use `tramp-file-name-host'
author
Michael Albinus
<michael.albinus@gmx.de>
Mon, 14 Jan 2008 19:36:07 +0000
(19:36 +0000)
committer
Michael Albinus
<michael.albinus@gmx.de>
Mon, 14 Jan 2008 19:36:07 +0000
(19:36 +0000)
instead of `tramp-file-name-real-host'.
lisp/net/tramp.el
patch
|
blob
|
history
diff --git
a/lisp/net/tramp.el
b/lisp/net/tramp.el
index 5a65b95b0f8d2fbea3406890a83cb285d68cef5f..3969f992a8cc15a514e20384ddb098b21f4df150 100644
(file)
--- a/
lisp/net/tramp.el
+++ b/
lisp/net/tramp.el
@@
-6731,7
+6731,9
@@
necessary only. This function will be used in file name completion."
(defun tramp-local-host-p (vec)
"Return t if this points to the local host, nil otherwise."
- (let ((host (tramp-file-name-real-host vec)))
+ ;; We cannot use `tramp-file-name-real-host'. A port is an
+ ;; indication for an ssh tunnel or alike.
+ (let ((host (tramp-file-name-host vec)))
(and
(stringp host)
(string-match